package ${packagePath}.dao;


import ${packagePath}.model.${entity.name}Model;
import ${packagePath}.util.BaseDaoSupport;

public class ${entity.name}BaseDao extends BaseDaoSupport<${entity.name}Model> {

	<#list entity.finderList as finder>
		public ${finder.returnType}Model findBy${finder.name}(<#list finder.columns as column> ${column.type} ${column.methodName}<#if column_has_next> , </#if> </#list>){
			String hql = "from ${packagePath}.model.${entity.name}Model where 1= 1";
			<#list finder.columns as column>
				hql += " and ${column.methodName} = ? ";
			</#list>
			return getObje(hql, <#list finder.columns as column> ${column.methodName}<#if column_has_next> , </#if> </#list>);
		}
	</#list>
}